package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 部门属性对象 sys_dept_property
 *
 * @author cxl
 * @date 2024-06-30
 */
@TableName ("sys_dept_property")
@ApiModel (value = "部门属性", description = "部门属性")
@Data
public class DeptPropertyEntity {

        @TableId (type = IdType.INPUT)
        private String id;

        @ApiModelProperty ("部门id")
        @TableField ("dept_Id")
        @Excel (name = "部门id")
        private String deptId;

        @ApiModelProperty ("编码")
        @TableField ("code")
        @Excel (name = "编码")
        private String code;

        @ApiModelProperty ("名称")
        @TableField ("name")
        @Excel (name = "名称")
        private String name;

        @ApiModelProperty ("显示顺序")
        @TableField ("show_num")
        @Excel (name = "显示顺序")
        private Integer showNum;

        @ApiModelProperty ("创建人Id")
        @TableField ("user_id")
        @Excel (name = "创建人Id")
        private String userId;

        @ApiModelProperty ("备注")
        @TableField ("remark")
        private String remark;

        @ApiModelProperty ("新增时间")
        @TableField ("create_time")
        @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
        private Date createTime;

        @ApiModelProperty ("修改人id")
        @TableField ("change_id")
        @Excel (name = "修改人id")
        private String changeId;

        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;

        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;


}
